#pragma once

#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>

#define N 100
#define MAX_NAME 20
#define MAX_PNUM 12
#define MAX_SEX 5
#define MAX_ADD 30


typedef struct PeopleInfo
{
	char name[MAX_NAME];
	int age;
	char pnum[MAX_PNUM];
	char sex[MAX_SEX];
	char add[MAX_ADD];
}PIF;
typedef struct ConTact
{
	PIF a[N];
	int size;
}CT;

void ConTactInit(CT* pc);

void ConTactAdd(CT* pc);

void ConTactShow(const CT* pc);

void ConTactDel(CT* pc);

void ConTactModify(CT* pc);

void ConTactSort(CT* pc);

void ConTactFind(const CT* pc);